<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>扩展DAte</title>
		<script>
			Date.prototype.toChinaFormat=function(){
				return this.getFullYear()+"年"+(this.getMonth()+1)+"月"+this.getDate()+"日"+" "+this.getHours()+"时"+this.getMinutes()+"分"+this.getSeconds()+"秒";
			}
			var d=new Date();
			alert(d.toChinaFormat());
			
		</script>
	</head>
	<body>
	</body>
</html>